<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Image selection</title>
	<link rel="stylesheet" href="{$wwwDir}css/skin1_admin.css" />

	<script type="text/javascript" language="JavaScript 1.2" src="{$wwwDir}js/popup_image_selection.js" ></script>

</head>
<body>

<script type="text/JavaScript">

var submited = {$submited};

if(submited==1) {$smarty.ldelim}
	if('{$formType}'=='P') {$smarty.ldelim}
		window.opener.document.getElementById('edit_product_image').src = '../{$applyedImage}';
		//window.opener.document.forms["modifyform"].image_file.value = '{$applyedImage}';

		window.opener.document.getElementById('image_file').value = '{$applyedImage}';
	
		self.close();
	{$smarty.rdelim}
	else if('{$formType}'=='G') {$smarty.ldelim}
		window.opener.location.reload();
		self.close();
	{$smarty.rdelim}
	else {$smarty.ldelim}
		//window.opener.location.reload();
		self.close();
	{$smarty.rdelim}

{$smarty.rdelim}
</script>



<table cellpadding="10" cellspacing="0" width="100%">
<tr>
	<td>
		<div align="center">
			<table cellspacing="0" width="100%">
				<tr>
					<td class="DialogTitle">Image selection</td>
				</tr>
				<tr>
					<td class="DialogBorder">
						<table cellspacing="1" class="DialogBox">
							<tr>
								<td class="DialogBox" valign="top">
									<form action="image_selection.php" method="post" name="imageselform" enctype="multipart/form-data">
										<input type="hidden" name="_formid" value="b8e00ff97aa8724ff000fee91fe90489" />
										<input type="hidden" name="type" value="{$formType}" />
										<input type="hidden" name="imgid" value="edit_image" />
										<input type="hidden" name="id" value="" />
										<input type="hidden" name="source" value="" />

										<table cellpadding="0" cellspacing="0">

										
											<tr>
												<td colspan="2">
													<table border="0">
														<tr>
															<td colspan="2">Select the source of an image below:</td>
														</tr>

													<!--
														<tr>
															<td width="50%">
																<table width="100%">
																	<tr>
																		<td colspan="2" bgcolor="#EEEEEE">
																			<table cellpadding="0" cellspacing="0" width="100%">
																				<tr>
																					<th height="16" align="left">&nbsp;&nbsp;File on this server</th>
																				</tr>
																			</table>
																		</td>
																	</tr>
																	<tr>
																		<td>
																			<input type="hidden" name="newpath" id="newpath" />
																			<input type="text" size="25" name="newfilename" id="newfilename" readonly="readonly" />
																			<input type="button" value="Browse..." onclick="javascript: popup_images('newfilename', 'newpath');" />
																		</td>
																		<td align="right">
																			<input type="button" value="Apply" onclick="javascript: document.imageselform.source.value='S'; document.imageselform.submit();" />
																		</td>
																	</tr>
																</table>
															</td>
														</tr>
													-->

												
														<tr>
															<td>
																<table width="100%">
																	<tr>
																		<td colspan="2" bgcolor="#EEEEEE">
																			<table cellpadding="0" cellspacing="0" width="100%">
																				<tr>
																					<th height="16" align="left">&nbsp;&nbsp;File from your local computer</th>
																				</tr>
																			</table>
																		</td>
																	</tr>
																	<tr>
																		<td>
																			<input type="file" size="25" name="userfile" />
																		</td>
																		<td align="right">
																			<input type="button" value="Apply" onclick="javascript: document.imageselform.source.value='L'; document.imageselform.submit();" />
																		</td>
																	</tr>
																	<tr>
																		<td colspan="2">
																			<font class="Star">WARNING!</font> The maximum file size that can be uploaded: 1047552b.
																		</td>
																	</tr>
																</table>
															</td>
														</tr>

													<!--
														<tr>
															<td colspan="2">
																<table width="100%">
																	<tr>
																		<td colspan="2" bgcolor="#EEEEEE">
																			<table cellpadding="0" cellspacing="0" width="100%">
																				<tr>
																					<th height="16" align="left">&nbsp;&nbsp;File on the Internet (enter image URL)</th>
																				</tr>
																			</table>
																		</td>
																	</tr>
																	<tr>
																		<td colspan="2">
																			<input type="text" size="60" name="fileurl" />
																		</td>
																	</tr>
																	<tr>
																		<td colspan="2" align="right">
																			<input type="button" value="Apply" onclick="javascript: document.imageselform.source.value='U'; document.imageselform.submit();" />
																		</td>
																	</tr>
																</table>
															</td>
														</tr>
													-->

													</table>
												</td>
											</tr>
										</table>
									</form>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</div>
		<p align="right"><a href="javascript: window.close();"><b>Close window</b></a></p>
</body>
</html>

